* Sensitivity Analysis: Window Analysis
log
log using "(1)_Generate_Panel_Data_Estimates_Window_Analysis", replace

clear
* this file creates coefficient estimates for the window analysis, using the panel data
cd "~/Dropbox/Cell_Phones/Research_Politics_Submission/ReplicationCellPhone_Reporting/"


use "panel.dta"
xtset gid
global windows1 "dummy_2010_Window_1 dummy_2010_Window_2 dummy_2010_Window_3 dummy_2010_Window_4 dummy_2010_Window_5 dummy_2010_Window_6 dummy_2010_Window_7 dummy_2010_Window_8 dummy_2010_Window_9 dummy_2010_Window_10 dummy_2010_Window_11 dummy_2010_Window_12 dummy_2010_Window_13  dummy_2010_Window_14 dummy_2010_Window_15 dummy_2010_Window_16 dummy_2010_Window_17 dummy_2010_Window_18 dummy_2010_Window_19 dummy_2010_Window_20 dummy_2010_Window_21 dummy_2010_Window_22 dummy_2010_Window_23 dummy_2010_Window_24 dummy_2010_Window_25 dummy_2010_Window_26 dummy_2010_Window_27 dummy_2010_Window_28 dummy_2010_Window_29 dummy_2010_Window_30 dummy_2010_Window_31 dummy_2010_Window_32 dummy_2010_Window_33 dummy_2010_Window_34 dummy_2010_Window_35 dummy_2010_Window_36 dummy_2010_Window_37 dummy_2010_Window_38 dummy_2010_Window_39 dummy_2010_Window_40 dummy_2010_Window_41 dummy_2010_Window_42 dummy_2010_Window_43 dummy_2010_Window_44 dummy_2010_Window_45"

global tflist ""
global modseq=0
foreach var in $windows1{
global modseq=$modseq+1
tempfile tf$modseq
parmby `"xtreg `var' cell dum08 dum09,fe r cluster(gid)"',label idnum(1) idstr(FE) saving(`tf$modseq',replace) flist(tflist)
}
dsconcat $tflist
saveold "windows1",replace
clear

use "panel.dta"
xtset gid
global windows2 "dummy_2010_prec_Window_1 dummy_2010_prec_Window_2 dummy_2010_prec_Window_3 dummy_2010_prec_Window_4 dummy_2010_prec_Window_5 dummy_2010_prec_Window_6 dummy_2010_prec_Window_7 dummy_2010_prec_Window_8 dummy_2010_prec_Window_9 dummy_2010_prec_Window_10 dummy_2010_prec_Window_11 dummy_2010_prec_Window_12 dummy_2010_prec_Window_13 dummy_2010_prec_Window_14 dummy_2010_prec_Window_15 dummy_2010_prec_Window_16 dummy_2010_prec_Window_17 dummy_2010_prec_Window_18 dummy_2010_prec_Window_19 dummy_2010_prec_Window_20 dummy_2010_prec_Window_21 dummy_2010_prec_Window_22 dummy_2010_prec_Window_23 dummy_2010_prec_Window_24 dummy_2010_prec_Window_25 dummy_2010_prec_Window_26 dummy_2010_prec_Window_27 dummy_2010_prec_Window_28 dummy_2010_prec_Window_29 dummy_2010_prec_Window_30 dummy_2010_prec_Window_31 dummy_2010_prec_Window_32 dummy_2010_prec_Window_33 dummy_2010_prec_Window_34 dummy_2010_prec_Window_35 dummy_2010_prec_Window_36 dummy_2010_prec_Window_37 dummy_2010_prec_Window_38 dummy_2010_prec_Window_39 dummy_2010_prec_Window_40 dummy_2010_prec_Window_41 dummy_2010_prec_Window_42 dummy_2010_prec_Window_43 dummy_2010_prec_Window_44 dummy_2010_prec_Window_45"

global tflist ""
global modseq=0
foreach var in $windows2{
global modseq=$modseq+1
tempfile tf$modseq
parmby `"xtreg `var' cell dum08 dum09,fe r cluster(gid)"',label idnum(1) idstr(FE) saving(`tf$modseq',replace) flist(tflist)
}
dsconcat $tflist
saveold "windows2",replace
clear

clear
use "panel.dta"
xtset gid
global windows3 "count_2010_Window_1 count_2010_Window_2 count_2010_Window_3 count_2010_Window_4 count_2010_Window_5 count_2010_Window_6 count_2010_Window_7 count_2010_Window_8 count_2010_Window_9 count_2010_Window_10 count_2010_Window_11 count_2010_Window_12 count_2010_Window_13 count_2010_Window_14 count_2010_Window_15 count_2010_Window_16 count_2010_Window_17 count_2010_Window_18 count_2010_Window_19 count_2010_Window_20 count_2010_Window_21 count_2010_Window_22 count_2010_Window_23 count_2010_Window_24 count_2010_Window_25 count_2010_Window_26 count_2010_Window_27 count_2010_Window_28 count_2010_Window_29 count_2010_Window_30 count_2010_Window_31 count_2010_Window_32 count_2010_Window_33 count_2010_Window_34 count_2010_Window_35 count_2010_Window_36 count_2010_Window_37 count_2010_Window_38 count_2010_Window_39 count_2010_Window_40 count_2010_Window_41 count_2010_Window_42 count_2010_Window_43 count_2010_Window_44 count_2010_Window_45"

global tflist ""
global modseq=0
foreach var in $windows3{
global modseq=$modseq+1
tempfile tf$modseq
parmby `"xtreg `var' cell dum08 dum09,fe r cluster(gid)"',label idnum(1) idstr(FE) saving(`tf$modseq',replace) flist(tflist)
}
dsconcat $tflist
saveold "windows3",replace
clear


clear
use "panel.dta"
xtset gid
global windows4 "count_2010_prec_Window_1 count_2010_prec_Window_2 count_2010_prec_Window_3 count_2010_prec_Window_4 count_2010_prec_Window_5 count_2010_prec_Window_6 count_2010_prec_Window_7 count_2010_prec_Window_8 count_2010_prec_Window_9 count_2010_prec_Window_10 count_2010_prec_Window_11 count_2010_prec_Window_12 count_2010_prec_Window_13 count_2010_prec_Window_14 count_2010_prec_Window_15 count_2010_prec_Window_16 count_2010_prec_Window_17 count_2010_prec_Window_18 count_2010_prec_Window_19 count_2010_prec_Window_20 count_2010_prec_Window_21 count_2010_prec_Window_22 count_2010_prec_Window_23 count_2010_prec_Window_24 count_2010_prec_Window_25 count_2010_prec_Window_26 count_2010_prec_Window_27 count_2010_prec_Window_28 count_2010_prec_Window_29 count_2010_prec_Window_30 count_2010_prec_Window_31 count_2010_prec_Window_32 count_2010_prec_Window_33 count_2010_prec_Window_34 count_2010_prec_Window_35 count_2010_prec_Window_36 count_2010_prec_Window_37 count_2010_prec_Window_38 count_2010_prec_Window_39 count_2010_prec_Window_40 count_2010_prec_Window_41 count_2010_prec_Window_42 count_2010_prec_Window_43 count_2010_prec_Window_44 count_2010_prec_Window_45"

global tflist ""
global modseq=0
foreach var in $windows4{
global modseq=$modseq+1
tempfile tf$modseq
parmby `"xtreg `var' cell dum08 dum09,fe r cluster(gid)"',label idnum(1) idstr(FE) saving(`tf$modseq',replace) flist(tflist)
}
dsconcat $tflist
saveold "windows4",replace
clear


clear
use "panel.dta"
xtset gid
global windows5 "UCDP_new_dummy_2010_Window_1  UCDP_new_dummy_2010_Window_2 UCDP_new_dummy_2010_Window_3 UCDP_new_dummy_2010_Window_4 UCDP_new_dummy_2010_Window_5 UCDP_new_dummy_2010_Window_6 UCDP_new_dummy_2010_Window_7 UCDP_new_dummy_2010_Window_8 UCDP_new_dummy_2010_Window_9 UCDP_new_dummy_2010_Window_10 UCDP_new_dummy_2010_Window_11 UCDP_new_dummy_2010_Window_12 UCDP_new_dummy_2010_Window_13 UCDP_new_dummy_2010_Window_14 UCDP_new_dummy_2010_Window_15 UCDP_new_dummy_2010_Window_16 UCDP_new_dummy_2010_Window_17 UCDP_new_dummy_2010_Window_18 UCDP_new_dummy_2010_Window_19 UCDP_new_dummy_2010_Window_20 UCDP_new_dummy_2010_Window_21 UCDP_new_dummy_2010_Window_22 UCDP_new_dummy_2010_Window_23 UCDP_new_dummy_2010_Window_24 UCDP_new_dummy_2010_Window_25 UCDP_new_dummy_2010_Window_26 UCDP_new_dummy_2010_Window_27 UCDP_new_dummy_2010_Window_28 UCDP_new_dummy_2010_Window_29 UCDP_new_dummy_2010_Window_30 UCDP_new_dummy_2010_Window_31 UCDP_new_dummy_2010_Window_32 UCDP_new_dummy_2010_Window_33 UCDP_new_dummy_2010_Window_34 UCDP_new_dummy_2010_Window_35 UCDP_new_dummy_2010_Window_36 UCDP_new_dummy_2010_Window_37 UCDP_new_dummy_2010_Window_38 UCDP_new_dummy_2010_Window_39 UCDP_new_dummy_2010_Window_40 UCDP_new_dummy_2010_Window_41 UCDP_new_dummy_2010_Window_42 UCDP_new_dummy_2010_Window_43 UCDP_new_dummy_2010_Window_44 UCDP_new_dummy_2010_Window_45"

global tflist ""
global modseq=0
foreach var in $windows5{
global modseq=$modseq+1
tempfile tf$modseq
parmby `"xtreg `var' cell dum08 dum09,fe r cluster(gid)"',label idnum(1) idstr(FE) saving(`tf$modseq',replace) flist(tflist)
}
dsconcat $tflist
saveold "windows5",replace
clear

clear
use "panel.dta"
xtset gid
global windows6 "UCDP_new_count_2010_Window_1 UCDP_new_count_2010_Window_2 UCDP_new_count_2010_Window_3 UCDP_new_count_2010_Window_4 UCDP_new_count_2010_Window_5 UCDP_new_count_2010_Window_6 UCDP_new_count_2010_Window_7 UCDP_new_count_2010_Window_8 UCDP_new_count_2010_Window_9 UCDP_new_count_2010_Window_10 UCDP_new_count_2010_Window_11 UCDP_new_count_2010_Window_12 UCDP_new_count_2010_Window_13 UCDP_new_count_2010_Window_14 UCDP_new_count_2010_Window_15 UCDP_new_count_2010_Window_16 UCDP_new_count_2010_Window_17 UCDP_new_count_2010_Window_18 UCDP_new_count_2010_Window_19 UCDP_new_count_2010_Window_20 UCDP_new_count_2010_Window_21 UCDP_new_count_2010_Window_22 UCDP_new_count_2010_Window_23 UCDP_new_count_2010_Window_24 UCDP_new_count_2010_Window_25 UCDP_new_count_2010_Window_26 UCDP_new_count_2010_Window_27 UCDP_new_count_2010_Window_28 UCDP_new_count_2010_Window_29 UCDP_new_count_2010_Window_30 UCDP_new_count_2010_Window_31 UCDP_new_count_2010_Window_32 UCDP_new_count_2010_Window_33 UCDP_new_count_2010_Window_34 UCDP_new_count_2010_Window_35 UCDP_new_count_2010_Window_36 UCDP_new_count_2010_Window_37 UCDP_new_count_2010_Window_38 UCDP_new_count_2010_Window_39 UCDP_new_count_2010_Window_40 UCDP_new_count_2010_Window_41 UCDP_new_count_2010_Window_42 UCDP_new_count_2010_Window_43 UCDP_new_count_2010_Window_44 UCDP_new_count_2010_Window_45"

global tflist ""
global modseq=0
foreach var in $windows6{
global modseq=$modseq+1
tempfile tf$modseq
parmby `"xtreg `var' cell dum08 dum09,fe r cluster(gid)"',label idnum(1) idstr(FE) saving(`tf$modseq',replace) flist(tflist)
}
dsconcat $tflist
saveold "windows6",replace
clear



use "panel_window_high.dta"
xtset gid
global windows1 "dummy_2010_Window_1 dummy_2010_Window_2 dummy_2010_Window_3 dummy_2010_Window_4 dummy_2010_Window_5 dummy_2010_Window_6 dummy_2010_Window_7 dummy_2010_Window_8 dummy_2010_Window_9 dummy_2010_Window_10 dummy_2010_Window_11 dummy_2010_Window_12 dummy_2010_Window_13  dummy_2010_Window_14 dummy_2010_Window_15 dummy_2010_Window_16 dummy_2010_Window_17 dummy_2010_Window_18 dummy_2010_Window_19 dummy_2010_Window_20 dummy_2010_Window_21 dummy_2010_Window_22 dummy_2010_Window_23 dummy_2010_Window_24 dummy_2010_Window_25 dummy_2010_Window_26 dummy_2010_Window_27 dummy_2010_Window_28 dummy_2010_Window_29 dummy_2010_Window_30 dummy_2010_Window_31 dummy_2010_Window_32 dummy_2010_Window_33 dummy_2010_Window_34 dummy_2010_Window_35 dummy_2010_Window_36 dummy_2010_Window_37 dummy_2010_Window_38 dummy_2010_Window_39 dummy_2010_Window_40 dummy_2010_Window_41 dummy_2010_Window_42 dummy_2010_Window_43 dummy_2010_Window_44 dummy_2010_Window_45"

global tflist ""
global modseq=0
foreach var in $windows1{
global modseq=$modseq+1
tempfile tf$modseq
parmby `"xtreg `var' cell dum08 dum09,fe r cluster(gid)"',label idnum(1) idstr(FE) saving(`tf$modseq',replace) flist(tflist)
}
dsconcat $tflist
saveold "windows7_1",replace
clear



clear
use "panel_window_high.dta"
xtset gid
global windows7 "dummy_2010_prec_Window_1 dummy_2010_prec_Window_2 dummy_2010_prec_Window_3 dummy_2010_prec_Window_4 dummy_2010_prec_Window_5 dummy_2010_prec_Window_6 dummy_2010_prec_Window_7 dummy_2010_prec_Window_8 dummy_2010_prec_Window_9 dummy_2010_prec_Window_10 dummy_2010_prec_Window_11 dummy_2010_prec_Window_12 dummy_2010_prec_Window_13 dummy_2010_prec_Window_14 dummy_2010_prec_Window_15 dummy_2010_prec_Window_16 dummy_2010_prec_Window_17 dummy_2010_prec_Window_18 dummy_2010_prec_Window_19 dummy_2010_prec_Window_20 dummy_2010_prec_Window_21 dummy_2010_prec_Window_22 dummy_2010_prec_Window_23 dummy_2010_prec_Window_24 dummy_2010_prec_Window_25 dummy_2010_prec_Window_26 dummy_2010_prec_Window_27 dummy_2010_prec_Window_28 dummy_2010_prec_Window_29 dummy_2010_prec_Window_30 dummy_2010_prec_Window_31 dummy_2010_prec_Window_32 dummy_2010_prec_Window_33 dummy_2010_prec_Window_34 dummy_2010_prec_Window_35 dummy_2010_prec_Window_36 dummy_2010_prec_Window_37 dummy_2010_prec_Window_38 dummy_2010_prec_Window_39 dummy_2010_prec_Window_40 dummy_2010_prec_Window_41 dummy_2010_prec_Window_42 dummy_2010_prec_Window_43 dummy_2010_prec_Window_44 dummy_2010_prec_Window_45"

global tflist ""
global modseq=0
foreach var in $windows7{
global modseq=$modseq+1
tempfile tf$modseq
parmby `"xtreg `var' cell dum08 dum09,fe r cluster(gid)"',label idnum(1) idstr(FE) saving(`tf$modseq',replace) flist(tflist)
}
dsconcat $tflist
saveold "windows7",replace
clear 
 
*
use "panel_window_high.dta"
xtset gid
global windows8 "count_2010_Window_1 count_2010_Window_2 count_2010_Window_3 count_2010_Window_4 count_2010_Window_5 count_2010_Window_6 count_2010_Window_7 count_2010_Window_8 count_2010_Window_9 count_2010_Window_10 count_2010_Window_11 count_2010_Window_12 count_2010_Window_13 count_2010_Window_14 count_2010_Window_15 count_2010_Window_16 count_2010_Window_17 count_2010_Window_18 count_2010_Window_19 count_2010_Window_20 count_2010_Window_21 count_2010_Window_22 count_2010_Window_23 count_2010_Window_24 count_2010_Window_25 count_2010_Window_26 count_2010_Window_27 count_2010_Window_28 count_2010_Window_29 count_2010_Window_30 count_2010_Window_31 count_2010_Window_32 count_2010_Window_33 count_2010_Window_34 count_2010_Window_35 count_2010_Window_36 count_2010_Window_37 count_2010_Window_38 count_2010_Window_39 count_2010_Window_40 count_2010_Window_41 count_2010_Window_42 count_2010_Window_43 count_2010_Window_44 count_2010_Window_45"

global tflist ""
global modseq=0
foreach var in $windows8{
global modseq=$modseq+1
tempfile tf$modseq
parmby `"xtreg `var' cell dum08 dum09,fe r cluster(gid)"',label idnum(1) idstr(FE) saving(`tf$modseq',replace) flist(tflist)
}
dsconcat $tflist
saveold "windows8",replace
clear

*
use "panel_window_high.dta"
xtset gid
global windows9 "count_2010_prec_Window_1 count_2010_prec_Window_2 count_2010_prec_Window_3 count_2010_prec_Window_4 count_2010_prec_Window_5 count_2010_prec_Window_6 count_2010_prec_Window_7 count_2010_prec_Window_8 count_2010_prec_Window_9 count_2010_prec_Window_10 count_2010_prec_Window_11 count_2010_prec_Window_12 count_2010_prec_Window_13 count_2010_prec_Window_14 count_2010_prec_Window_15 count_2010_prec_Window_16 count_2010_prec_Window_17 count_2010_prec_Window_18 count_2010_prec_Window_19 count_2010_prec_Window_20 count_2010_prec_Window_21 count_2010_prec_Window_22 count_2010_prec_Window_23 count_2010_prec_Window_24 count_2010_prec_Window_25 count_2010_prec_Window_26 count_2010_prec_Window_27 count_2010_prec_Window_28 count_2010_prec_Window_29 count_2010_prec_Window_30 count_2010_prec_Window_31 count_2010_prec_Window_32 count_2010_prec_Window_33 count_2010_prec_Window_34 count_2010_prec_Window_35 count_2010_prec_Window_36 count_2010_prec_Window_37 count_2010_prec_Window_38 count_2010_prec_Window_39 count_2010_prec_Window_40 count_2010_prec_Window_41 count_2010_prec_Window_42 count_2010_prec_Window_43 count_2010_prec_Window_44 count_2010_prec_Window_45"

global tflist ""
global modseq=0
foreach var in $windows9{
global modseq=$modseq+1
tempfile tf$modseq
parmby `"xtreg `var' cell dum08 dum09,fe r cluster(gid)"',label idnum(1) idstr(FE) saving(`tf$modseq',replace) flist(tflist)
}
dsconcat $tflist
saveold "windows9",replace
clear

*
use "panel_window_high.dta"
xtset gid
global windows10 "UCDP_new_dummy_2010_Window_1  UCDP_new_dummy_2010_Window_2 UCDP_new_dummy_2010_Window_3 UCDP_new_dummy_2010_Window_4 UCDP_new_dummy_2010_Window_5 UCDP_new_dummy_2010_Window_6 UCDP_new_dummy_2010_Window_7 UCDP_new_dummy_2010_Window_8 UCDP_new_dummy_2010_Window_9 UCDP_new_dummy_2010_Window_10 UCDP_new_dummy_2010_Window_11 UCDP_new_dummy_2010_Window_12 UCDP_new_dummy_2010_Window_13 UCDP_new_dummy_2010_Window_14 UCDP_new_dummy_2010_Window_15 UCDP_new_dummy_2010_Window_16 UCDP_new_dummy_2010_Window_17 UCDP_new_dummy_2010_Window_18 UCDP_new_dummy_2010_Window_19 UCDP_new_dummy_2010_Window_20 UCDP_new_dummy_2010_Window_21 UCDP_new_dummy_2010_Window_22 UCDP_new_dummy_2010_Window_23 UCDP_new_dummy_2010_Window_24 UCDP_new_dummy_2010_Window_25 UCDP_new_dummy_2010_Window_26 UCDP_new_dummy_2010_Window_27 UCDP_new_dummy_2010_Window_28 UCDP_new_dummy_2010_Window_29 UCDP_new_dummy_2010_Window_30 UCDP_new_dummy_2010_Window_31 UCDP_new_dummy_2010_Window_32 UCDP_new_dummy_2010_Window_33 UCDP_new_dummy_2010_Window_34 UCDP_new_dummy_2010_Window_35 UCDP_new_dummy_2010_Window_36 UCDP_new_dummy_2010_Window_37 UCDP_new_dummy_2010_Window_38 UCDP_new_dummy_2010_Window_39 UCDP_new_dummy_2010_Window_40 UCDP_new_dummy_2010_Window_41 UCDP_new_dummy_2010_Window_42 UCDP_new_dummy_2010_Window_43 UCDP_new_dummy_2010_Window_44 UCDP_new_dummy_2010_Window_45"

global tflist ""
global modseq=0
foreach var in $windows10{
global modseq=$modseq+1
tempfile tf$modseq
parmby `"xtreg `var' cell dum08 dum09,fe r cluster(gid)"',label idnum(1) idstr(FE) saving(`tf$modseq',replace) flist(tflist)
}
dsconcat $tflist
saveold "windows10",replace
clear

*
use "panel_window_high.dta"
xtset gid
global windows11 "UCDP_new_count_2010_Window_1 UCDP_new_count_2010_Window_2 UCDP_new_count_2010_Window_3 UCDP_new_count_2010_Window_4 UCDP_new_count_2010_Window_5 UCDP_new_count_2010_Window_6 UCDP_new_count_2010_Window_7 UCDP_new_count_2010_Window_8 UCDP_new_count_2010_Window_9 UCDP_new_count_2010_Window_10 UCDP_new_count_2010_Window_11 UCDP_new_count_2010_Window_12 UCDP_new_count_2010_Window_13 UCDP_new_count_2010_Window_14 UCDP_new_count_2010_Window_15 UCDP_new_count_2010_Window_16 UCDP_new_count_2010_Window_17 UCDP_new_count_2010_Window_18 UCDP_new_count_2010_Window_19 UCDP_new_count_2010_Window_20 UCDP_new_count_2010_Window_21 UCDP_new_count_2010_Window_22 UCDP_new_count_2010_Window_23 UCDP_new_count_2010_Window_24 UCDP_new_count_2010_Window_25 UCDP_new_count_2010_Window_26 UCDP_new_count_2010_Window_27 UCDP_new_count_2010_Window_28 UCDP_new_count_2010_Window_29 UCDP_new_count_2010_Window_30 UCDP_new_count_2010_Window_31 UCDP_new_count_2010_Window_32 UCDP_new_count_2010_Window_33 UCDP_new_count_2010_Window_34 UCDP_new_count_2010_Window_35 UCDP_new_count_2010_Window_36 UCDP_new_count_2010_Window_37 UCDP_new_count_2010_Window_38 UCDP_new_count_2010_Window_39 UCDP_new_count_2010_Window_40 UCDP_new_count_2010_Window_41 UCDP_new_count_2010_Window_42 UCDP_new_count_2010_Window_43 UCDP_new_count_2010_Window_44 UCDP_new_count_2010_Window_45"

global tflist ""
global modseq=0
foreach var in $windows11{
global modseq=$modseq+1
tempfile tf$modseq
parmby `"xtreg `var' cell dum08 dum09,fe r cluster(gid)"',label idnum(1) idstr(FE) saving(`tf$modseq',replace) flist(tflist)
}
dsconcat $tflist
saveold "windows11",replace
clear

*
use "new_spat_high.dta"
xtset gwno
gen lgdp=log(gcppc00+1)
global windows12 "dummy_2008_Window1 dummy_2008_Window2 dummy_2008_Window3 dummy_2008_Window4 dummy_2008_Window5 dummy_2008_Window6 dummy_2008_Window7 dummy_2008_Window8 dummy_2008_Window9 dummy_2008_Window10 dummy_2008_Window11 dummy_2008_Window12 dummy_2008_Window13 dummy_2008_Window14 dummy_2008_Window15 dummy_2008_Window16 dummy_2008_Window17 dummy_2008_Window18 dummy_2008_Window19 dummy_2008_Window20 dummy_2008_Window21 dummy_2008_Window22 dummy_2008_Window23 dummy_2008_Window24 dummy_2008_Window25 dummy_2008_Window26 dummy_2008_Window27 dummy_2008_Window28 dummy_2008_Window29 dummy_2008_Window30 dummy_2008_Window31 dummy_2008_Window32 dummy_2008_Window33 dummy_2008_Window34 dummy_2008_Window35 dummy_2008_Window36 dummy_2008_Window37 dummy_2008_Window38 dummy_2008_Window39 dummy_2008_Window40 dummy_2008_Window41 dummy_2008_Window42 dummy_2008_Window43 dummy_2008_Window44 dummy_2008_Window45"

global tflist ""
global modseq=0
foreach var in $windows12{
global modseq=$modseq+1
tempfile tf$modseq
parmby `"xtreg `var' splag07_dum pre2000_count bdist1 capdist pop2005 mnt irri lgdp cell_dum_07,fe r cluster(gwno)"',label idnum(1) idstr(FE) saving(`tf$modseq',replace) flist(tflist)
}
dsconcat $tflist
saveold "windows12",replace
clear
log close

